function unlinexuan(num) {
    var i = num;
    var allBox = document.getElementsByName('CopyAddr' + i + '');

    var args = "";
    for (var k = 0; k < allBox.length; k++) {
        if (allBox[k].checked == true) {
            var mvfile = get_movie_name(allBox[k].value, '/');
            args += '{"url":"' + allBox[k].value + '", "file_name":"' + mvfile + '","cookie":"xunbo' + k + '"},';
        }
    }
    if (args != "") {
        var reg = /,$/gi;
        args = args.replace(reg, "");
        args = '[' + args + ']';
        var tasks = {"sid": 21502, "data": eval("(" + args + ")")};
        XFLIB.startDownload_BatchTaskLixian(tasks);
    } else {
        alert('请选择您要下载的电影!');
    }
}
function onlinexuan(num) {
    var i = num;
    var allBox = document.getElementsByName('CopyAddr' + i + '');

    var args = "";
    for (var k = 0; k < allBox.length; k++) {
        if (allBox[k].checked == true) {
            var mvfile = get_movie_name(allBox[k].value, '/');
            args += '{"url":"' + allBox[k].value + '", "file_name":"' + mvfile + '","cookie":"xunbo' + k + '"},';
        }
    }
    if (args != "") {
        var reg = /,$/gi;
        args = args.replace(reg, "");
        args = '[' + args + ']';
        var tasks = {"sid": 21502, "data": eval("(" + args + ")")};
        XFLIB.startDownload_BatchTask(tasks);
    } else {
        alert('请选择您要下载的电影!');
    }
}
function get_movie_name(filename, arsg) {
    var tname = filename.split(arsg);
    if (tname.length > 2) {
        return get_movie_name(tname[(tname.length - 1)], ']');
    } else {
        return tname[(tname.length - 1)];
    }
}